package com.sky.mapper;

import com.sky.entity.Setmeal;
import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealDishMapper {

    List<Long> querySetmealByDishIds(List<Long> dishIds);

    void saveSetmealDish(List<SetmealDish> setmealDishes, Long setmealId);

    List<SetmealDish> querySetmealBySetmealId(Long setmealId);

    int deleteBySetmealIds(List<Long> setmealIds);

    int countStatusBySetmealId(Long setmealId, Integer status);

    Setmeal getSetmealById(Long setmealId);
}
